package com.langxin.erp.model;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 资讯
 * @author guqj
 *
 */
public class NewsInfo extends BaseInfo {

	
	private static final long serialVersionUID = 836325251416848287L;
	// 标题
	@NotBlank(message = "请填写标题")
	private String title;
	// 描述
	@NotBlank(message = "请填写描述")
	private String descr;
	// 图片URL
	private String  image;
	// 正文
	@NotBlank(message = "请填写正文")
	private String  context;
	// 标签
	private String  tag;
	// 标签颜色
	private String  color;
	// 状态
	private Integer status = 1;
	// 阅读次数
	private Integer readTime;
	
	private Integer userId;
	
	
	
	public Integer getReadTime() {
		return readTime;
	}
	public void setReadTime(Integer readTime) {
		this.readTime = readTime;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getDescr() {
		return descr;
	}
	public void setDescr(String descr) {
		this.descr = descr;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
}
